package com.xneure.utils;

import com.xneure.enums.Armour;

public class EncryptUtil {

	public static String encrypt(byte[] bt, Armour... arms) {
		for (Armour am : arms) {
			bt = am.encode(bt);
		}
		return new String(bt);
	}

	public static String decode(byte[] bt, Armour... arms) {
		for (Armour am : arms) {
			bt = am.decode(bt);
		}
		return new String(bt);
	}
	
}
